package com.ebc.eservice.service;

import com.ebc.eservice.util.JsonResult;
import com.ebc.eservice.vo.article.AddArticleTypeReqVo;
import com.ebc.eservice.vo.article.ArticleReqVo;
import com.ebc.eservice.vo.article.ArticleRespVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface EbcArticleService {
    //添加文章
    JsonResult addNewArticle(ArticleReqVo articleReqVo);
    //添加文章照片
    JsonResult addArticlePic(Integer articleId, MultipartFile file) throws IOException;
    //所有文章 分页
    JsonResult getArticleList(int current, int size,int companyId);
    //修改文章
    JsonResult updateArticle(ArticleRespVo articleRespVo) throws IOException;
    //根据文章id 删除文章
    JsonResult deleteArticle(Integer aid);


    //获取分类
    JsonResult getArticleType();
    //添加分类
    JsonResult addArticleType(AddArticleTypeReqVo articleTypeReqVo);
    //编辑分类
    JsonResult editArticleType(AddArticleTypeReqVo articleTypeReqVo);
    //删除分类
    JsonResult deleteArticleType(AddArticleTypeReqVo Type);

}
